const http = uni.$u.http
import store from '../store/index.js'
// export const getGoodsList = (bcid=1,page=1)=>{
// 	let skip = (page-1)*8
// 	return http.get(`/classes/CakeGoods?where={"bcid":${bcid}}&limit=8&skip=${skip}`)
// }

export const getGoodsList = (page=1)=>{
	let skip = (page-1)*8
	let {cond} = store.state.condition
	let wh = JSON.stringify(cond)
	return http.get(`/classes/CakeGoods?where=${wh}&limit=8&skip=${skip}`)
}




